/*
 * @Author: your name
 * @Date: 2020-08-19 18:08:31
 * @LastEditTime: 2021-04-23 14:08:36
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \mobilephoneStyleb\src\main.js
 */
import Vue from "vue";
import Vuex from "vuex";
import App from "./App.vue";
import router from "./router";
import store from "../store";
import "./styles/base.less";
import "./styles/iconfont.css";
import "lib-flexible";
import { Button } from "vant";

Vue.use(Button);
Vue.use(Vuex);
// 全局注册组件
// ----------------------------------------------------------------------------------
// import hmheader from "./components/hmheader.vue";
// Vue.component("hm-header", hmheader);
// import axios from "axios";
// Vue.prototype.$axios = axios;
// axios.defaults.baseURL = ''
// 记住npm i axios
// =========================
// this.$axios({
//   method: 'post',
//   url: '/register',
//   data: {
//     username: this.username,
//     password: this.password,
//     nickname: this.nickname
//   }
// }).then(res => {
//   console.log(res.data)
//   // 判断响应状态
//   if (res.data.statusCode === 200) {

//   } else {

//   }
// })
// -------------------------------------------------------------------------------------------
new Vue({
  store,
  router,
  render: (h) => h(App),
}).$mount("#app");
